/**
 * Created by lenovo on 2017/5/2.
 */
(function(){
    //页面的高度
    parent.$('#content').css('height','1900px').css('width','1135px');

    //提现页面
    $('.cash').on('click',function(){
        parent.$('iframe').attr('src','./html/cash.html');
    })

    //报名人数
    $('.bao').on('click',function(){
        parent.$('iframe').attr('src','./html/activePerson.html');
    })

    $(document).ready(function(){
        $('#red').treeview({
            animated: "fast",
            collapsed: false,
            /*collapsed: true,*/
            /*unique: true,*/
            persist: "cookie",
            toggle: function() {
                //window.console && console.log("%o was toggled", this);
            }
        })
        $('#red1').treeview({
            animated: "fast",
            collapsed: false,
            /*collapsed: true,*/
            /*unique: true,*/
            persist: "cookie",
            toggle: function() {
                window.console && console.log("%o was toggled", this);
            }
        })
    })

    //处理
    $('.ap_ul2 .deal').on('click',function(){
        $('.bg_back').css('display','block');
        $('.handle').css('display','block');
    })
    $('.handle img').on('click',function(){
        $('.bg_back').css('display','none');
        $('.handle').css('display','none');
    })

    //编辑
    $('.ap_edit').on('click',function(){
        parent.$('iframe').attr('src','./html/activeBasic.html');
    })

    //弹出层
    $('.hand_btn').on('click',function(){
        $('.bg_back').css('display','none');
        $('.handle').css('display','none');
    })

    /*创建百度地图*/
    var map = new BMap.Map("bMap");    // 创建Map实例
    map.centerAndZoom('中国 北京市 沙河 史各庄', 11);  // 初始化地图,设置中心点坐标和地图级别
    map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放

    //查看报名
    $('.list .item4').on('click',function(){
        parent.$('iframe').attr('src','./html/activePerson.html');
    })

    //活动预览接口
    $.ajax({
        url:'',
        type:'',
        dataType:'json',
        success:function(result){

        },
        error:function(result){

        }
    })
})()
